diff options
Diffstat (limited to 'src/routes/[username]/transactions')
| -rw-r--r-- | src/routes/[username]/transactions/+page.svelte | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/routes/[username]/transactions/+page.svelte b/src/routes/[username]/transactions/+page.svelte index c91fd900..de93997d 100644 --- a/src/routes/[username]/transactions/+page.svelte +++ b/src/routes/[username]/transactions/+page.svelte @@ -1,6 +1,7 @@ <script> import { AppHeader } from '$comp'; import { user, newPayment } from '$lib/store'; + import { _ } from 'svelte-i18n'; $newPayment = false; @@ -12,14 +13,14 @@ <div class="my-20"> <h1 class="px-3 md:px-0 text-center text-3xl md:text-4xl font-semibold mb-10"> - Transaction History + {$_('user.transactions.header')} </h1> <div class="max-w-5xl w-11/12 md:w-3/4 xl:w-1/2 mx-auto md:text-lg"> <div class="text-secondary grid grid-cols-3 mb-5"> - <h2>AMOUNT</h2> - <h2 class="text-center">TYPE</h2> - <h2 class="text-right">TIME</h2> + <h2>{$_('user.transactions.AMOUNT')}</h2> + <h2 class="text-center">{$_('user.transactions.TYPE')}</h2> + <h2 class="text-right">{$_('user.transactions.TIME')}</h2> </div> <div class="space-y-10"> @@ -38,12 +39,12 @@ >{tx.amount > 0 ? '+' : ''}{new Intl.NumberFormat('en-US', { maximumFractionDigits: 0 }).format(tx.amount)} - SATS + SAT </span> </div> <div class="text-center"> - <span class="text-secondary">{tx.amount < 0 ? 'Sent' : 'Received'}</span> + <span class="text-secondary">{$_('user.transactions.' + (tx.amount < 0 ? 'sent' : 'received'))}</span> </div> <div class="text-secondary text-right"> @@ -52,7 +53,7 @@ </div> {/each} {:else} - <p class="text-secondary text-lg text-center">No transactions yet.</p> + <p class="text-secondary text-lg text-center">{$_('user.transactions.empty')}</p> {/if} </div> </div> |
